package com.cabinet.web.entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.cabinet.base.entity.IdEntity;



/**
 * 商品实体
 * @author hqz
 *
 */

@Entity
@Table(name="ict_commodities")
public class Commodities extends IdEntity  implements Serializable{
	private static final long serialVersionUID = -6784438547869593454L;

		//商品名称
	    private String coName;
	    //商品价格
	    private String coPrice;
	    //商品图片	
	    private String coPhoto;
	    //商品库存数量	
	    private Integer coNum;
	    //商品类型id
	    private Long coClassId;
	    //商品所属商家
	    private Long sellerId;
		public String getCoName() {
			return coName;
		}
		public void setCoName(String coName) {
			this.coName = coName;
		}
		public String getCoPrice() {
			return coPrice;
		}
		public void setCoPrice(String coPrice) {
			this.coPrice = coPrice;
		}
		public String getCoPhoto() {
			return coPhoto;
		}
		public void setCoPhoto(String coPhoto) {
			this.coPhoto = coPhoto;
		}
		public Integer getCoNum() {
			return coNum;
		}
		public void setCoNum(Integer coNum) {
			this.coNum = coNum;
		}
		public Long getCoClassId() {
			return coClassId;
		}
		public void setCoClassId(Long coClassId) {
			this.coClassId = coClassId;
		}
		public Long getSellerId() {
			return sellerId;
		}
		public void setSellerId(Long sellerId) {
			this.sellerId = sellerId;
		}
	    
	 /*   @ManyToOne(fetch=FetchType.LAZY)
	    @JoinColumn(name="coclass_id",foreignKey=@ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
	    private Coclass coclass;
	    
	    @ManyToOne(fetch=FetchType.LAZY)
	    @JoinColumn(name="seller_id",foreignKey=@ForeignKey(value=ConstraintMode.NO_CONSTRAINT))
	    private Seller seller;*/
	    
	    
	    
}
